package com.yizhuoyan.his.ao;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 处置申请Ao
 */
@Data
public class DisposalRecordAo {
    //病历id
    @NotBlank(message = "病历id不可为空")
    @Pattern(regexp = "^[\\d]+$",message = "病历id格式错误")
    private String medicalRecordId;
    //挂号id
    @NotBlank(message = "挂号id不可为空")
    @Pattern(regexp = "^[\\d]+$",message = "挂号id格式错误")
    private String registrationRecordId;
    //项目id（可传入多个）
    private String[] nodrugExpenseItemId;
    //项目名称（可传入多个）
    private String[] projectName;
    //目的要求
    private String objective;
    //检查/处置部位
    @Length(max = 64, message = "检查部位长度不能大于{max}")
    private String position;
    //是否加急  1为加急 0为不加急
    @Pattern(regexp = "^[01]{1}$",message = "参数：是否加急错误")
    private String urgent;
}
